import requests


class TokenTool(object):
    @classmethod
    def token_data(cls):
        login_test = {"mobile": "13800000002", "password": "hm#qd@23!"}
        resp = requests.post("https://heimahr.itheima.net/api/sys/login", json=login_test)
        return {"Authorization": f'Bearer {resp.json().get("data")}'}


if __name__ == '__main__':
    print(TokenTool.token_data())
